package flink.connector.alarm;

import org.apache.flink.annotation.PublicEvolving;
import org.apache.flink.configuration.ConfigOption;

import static org.apache.flink.configuration.ConfigOptions.key;

/**
 * Options for the Wechat Alarm connector.
 *
 * @author jasonlee
 */
@PublicEvolving
public class WechatAlarmConnectorOptions {

    public static final ConfigOption<String> URL =
            key("url")
                    .stringType()
                    .noDefaultValue()
                    .withDescription("The address of the http request must be set");

    public static final ConfigOption<String> MSGTYPE =
            key("msgtype")
                    .stringType()
                    .defaultValue("markdown")
                    .withDescription(
                            "Message types currently support text or markdown. The default is markdown");

    public static final ConfigOption<String> MENTIONED_LIST =
            key("mentioned_list")
                    .stringType()
                    .defaultValue("mujiankui,litianfu,lienjie")
                    .withDescription(
                            "A list of userids that alerts a specified member of the group (@a member), with @all indicating that everyone is reminded. If a userid is not available, the mentioned_mobile_list can be used");

    private WechatAlarmConnectorOptions() {}
}
